<!DOCTYPE html>
<html class="x-admin-sm">

<head>
    <meta charset="UTF-8">
    <title>后台登录</title>
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
        content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <link rel="stylesheet" href="../../src/css/font.css">
    <link rel="stylesheet" href="../../src/css/xadmin.css">
    <script src="../../lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="../../src/js/xadmin.js"></script>
</head>

<body>
    <div class="layui-fluid">
        <div class="layui-row">
            <div class="layui-form">

                <div class="layui-form-item">
                    <label for="username" class="layui-form-label">
                        <span class="x-red">*</span>上级分类
                    </label>
                    <div class="layui-inline layui-show-xs-block">
                        <select id="pid">
                            <option value="">请选择</option>
                            <option value="title">标题</option>
                            <option value="id">ID</option>
                        </select>
                    </div>
                </div>

                <div class="layui-form-item">
                    <label for="username" class="layui-form-label">
                        <span class="x-red">*</span>分类名称
                    </label>
                    <div class="layui-input-inline">
                        <input type="text" id="title" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label for="phone" class="layui-form-label">
                        <span class="x-red">*</span>排序
                    </label>
                    <div class="layui-input-inline">
                        <input type="number" id="sort" name="phone" required="" lay-verify="phone" autocomplete="off"
                            class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label"><span class="x-red">*</span>状态</label>
                    <div class="layui-input-block">
                        <input type="radio" name="open" lay-skin="primary" title="开启" checked="">
                        <input type="radio" name="open" lay-skin="primary" title="关闭">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label for="L_repass" class="layui-form-label">
                    </label>
                    <button class="layui-btn" onclick="new Cate().addCate()">
                        增加
                    </button>
                </div>
                </form>
            </div>
        </div>
</body>

</html>
<script>
    layui.use(['laydate', 'form'], function () {
        var laydate = layui.laydate;
        var form = layui.form;
    });
</script>
<script type="text/javascript" src="../../src/js/admin/utils/request.js"></script>
<script type="text/javascript" src="../../src/js/admin/cate.js"></script>